package com.example.openguass.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.openguass.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.openguass.vo.CategoryPageVO;
import com.example.openguass.vo.CategoryVO;
import com.sun.org.apache.xpath.internal.operations.Bool;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xa
 * @since 2022-11-17
 */
public interface CategoryService extends IService<Category> {
    Boolean insert(CategoryVO categoryVO);

    Boolean exit(String name);

    Boolean update(CategoryVO categoryVO);

    Boolean removeAllById(String categoryId);

    IPage<Category> findPage(CategoryPageVO pageVO);
}
